package cn.ljx.dao.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import cn.ljx.dao.HandleDao;
import cn.ljx.entity.TBHandle;
import cn.ljx.entity.TBUser;
import cn.ljx.mapping.TBHandleMapper;
import cn.ljx.mapping.TBUserMapper;

@Repository("HandleDao")
public class HandleDaoImpl implements HandleDao {
	
	@Resource(name = "TBHandleMapper")
    private TBHandleMapper tbHandleMapper;

	public TBHandle getHandleByName(String username) {
		// TODO Auto-generated method stub
		return tbHandleMapper.getHandleByName(username);
	}


	public int delectHandle(String login_name) {
		// TODO Auto-generated method stub
		return tbHandleMapper.delectHandle(login_name);
	}

	public int addHandle(TBHandle tbhandle) {
		// TODO Auto-generated method stub
		return tbHandleMapper.addHandle(tbhandle);
	}

	public TBHandle getHandleById(String id) {
		// TODO Auto-generated method stub
		return tbHandleMapper.getHandleById(id);
	}

	public int updateHandle(TBHandle tbhandle) {
		// TODO Auto-generated method stub
		return tbHandleMapper.updateHandle(tbhandle);
	}

	public List<TBHandle> gettbHandleList(String real_name) {
		// TODO Auto-generated method stub
		return tbHandleMapper.gettbHandleList(real_name);
	}

	
}
